<template>
  <div>
    <!-- layout布局 -->
    <!-- 一行 占24栏 -->
    <el-row>
      <el-col :span="24">
        <div class="grid-content bg-purple-dark">5</div>
      </el-col>
    </el-row>

    <el-row>
      <el-col :span="12"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="12"
        ><div class="grid-content bg-purple-light"></div
      ></el-col>
    </el-row>

    <el-row>
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="4"
        ><div class="grid-content bg-purple-light"></div
      ></el-col>
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="4"
        ><div class="grid-content bg-purple-light"></div
      ></el-col>
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="4"
        ><div class="grid-content bg-purple-light"></div
      ></el-col>
    </el-row>

    <el-row :gutter="20">
      <el-col :span="15"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="2"
        ><div class="grid-content bg-purple-light"></div
      ></el-col>
    </el-row>
    <hr />
    <!-- 可以通过type="flex" 控制弹性盒中的子元素的布局  start靠左   end靠右  center
    space-around 就剩余的空白分布在子元素的两侧
    space-between 将剩余的空白分布在资源之间
    -->
    <el-row type="flex" class="row-bg" justify="space-around">
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"
        ><div class="grid-content bg-purple-light"></div
      ></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
    </el-row>
  </div>
</template>

<script>
export default {};
</script>

<style>
.el-row {
  margin-bottom: 20px;
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
  
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>